#include "../IO/AudioModule.h"
#include <ncurses.h>
#pragma once



class AMView {

private://константы
	static int const PM_STOP = 'w';
	static int const PM_PLAY = 's'; 
	static int const PM_CLOSE = 'q';
	static int const PM_FORWARD = 'r';
	static int const PM_ADJUST = 'a';
private:
	AudioModule am;

	WINDOW * createWindow(int h, int w, int x, int y);
	void destroyWindow(WINDOW * win);

public:
	AMView(AudioModule & am);
	AMView();
	AudioModule & getAudio();
	void playMode(int row, int oldCol, int firstLineShown, int bookSize);
};
